package day05;

public class MethodDemo {
    public static void main(String[] args) {
        say();
        System.out.println("-----------");
        sayHi("马云炜");
        sayHi("翟瑞杰");
        System.out.println("-----------");
        sayHello("马云炜",66);
        sayHello("翟瑞杰",66);
    }
    public static void say(){
        System.out.println("大家好，我叫马云炜");
    }
    public static void sayHi(String name){
        System.out.println("大家好，我叫"+name+"今年xz18岁了");
    }
    public static void sayHello(String name,int age){
        if(age >= 60){
            return;
        }
        System.out.println("大家好我叫"+name+"今年"+age+"岁了");
    }

}
